package demo4;

import java.sql.SQLOutput;

public class Dog extends Animals implements IAmphibious{
    @Override
    public void swim() {
        System.out.println("狗正在狗刨式游泳");
    }

    @Override
    public void run() {
        System.out.println("狗正在用四条腿跑");
    }

    public Dog(String name) {
        super(name);
    }
}
